package org.jeecg.modules.wlhy.bill.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wlhy.bill.entity.HyShippingNoteBill;

import java.util.Date;
import java.util.List;

/**
 * @Description: hy_shipping_note_bill
 * @Author: jeecg-boot
 * @Date:   2021-01-20
 * @Version: V1.0
 */
public interface HyShippingNoteBillMapper extends BaseMapper<HyShippingNoteBill> {

    List<HyShippingNoteBill> driverDeclareStat(
            @Param("startTime") Date startTime
            ,@Param("endTime")  Date endTime);

    HyShippingNoteBill getByBillNumForUpdate(@Param("billNum") String billNum);

    void updateRxtInfoById(@Param("id") String id, @Param("rxtInfo") String rxtInfo);


    IPage<HyShippingNoteBill> getPageList(
            Page<HyShippingNoteBill> page,
            @Param(Constants.WRAPPER) QueryWrapper<HyShippingNoteBill> queryWrapper
    );

    List<HyShippingNoteBill> getList(
            @Param(Constants.WRAPPER) QueryWrapper<org.jeecg.modules.wlhy.bill.entity.HyShippingNoteBill> queryWrapper
    );
}
